```LAGRANGE
           __   __             __   ___
|     /\  / _` |__)  /\  |\ | / _` |__
|___ /~~\ \__> |  \ /~~\ | \| \__> |___

```
# Release notes

## 1.18.4
* Added option to disable page width expansion to fit long lines.
* Limited page width expansion to 33% so room is left for the current title in the margin.
* Audio player UI shows number of downloaded bytes if length of audio is still unknown.
* Strip CR characters in content pasted to input fields. Line breaks are expected to be just LFs.
* Fixed use of non-Gemini search URLs. (Do not force-prepend "gemini://".)
* Fixed handling of the reserved `:` character in URL paths.
* TUI: Fixed possible crash at launch.
* Updated UI translations.

## 1.18.3
* TUI: Fixed background colors in reduced color modes (less than 256 colors).

## 1.18.2
* Misfin: URI format has changed to "misfin:address?message" instead of the previously used "misfin://address". The optional query string ("message") is used as the initial message contents if the upload dialog's text editor is empty.
* Increased number of concurrent feed subscription requests (now 10, was 4).
* Potential workaround for a crash during feed refresh.
* Fixed redirection counting (and related warnings) when requesting Titan URIs.
* Fixed perpetual load spinner animation when redirected to a Titan URL.
* TUI: Fixed Identities sidebar not responding to the context menu action.
* TUI: Fixed screen not being refreshed when a key is held down.
* TUI: Fixed black cursor on empty regions of the screen, regardless of text color.
* TUI: Fixed footer button shortcut keys for trusting the server certificate and showing Identities sidebar.
* TUI: Fixed dimensions of the New Identity dialog.
* TUI: Fixed first-run bookmarks getting re-added on every launch.
* Updated UI translations.

## 1.18.1
* macOS: Fixed opening Misfin URIs externally via system handlers.
* Windows: Register Lagrange as a "misfin://" URL handler.
* TUI: Fixed potentially garbled output.
* TUI: Only link Curses statically when using CMake option `ENABLE_STATIC`.
* Updated UI translations.

## 1.18

New features:
* Support for sending Misfin messages. "misfin://" links are opened in the upload dialog. You must import a Misfin identity before you can send a message.
* Misfin: Identity sidebar indicates which identities are for Misfin.
* Support for the Guppy protocol. Contributed by Dima Krasner.
* Titan: Support for the "edit" parameter in opened Titan links. The target's contents are downloaded and displayed in the upload dialog's text editor. After editing the contents are uploaded back to the server.
* Option to disable all TLS security warnings.
* Opus audio playback using libopusfile (optional dependency). Contributed by Martin Chang.

Changes and enhancements:
* The Curses-based `clagrange` can be built in addition to the GUI, not only separately. Removed the TUI build script.
* Improved UI focus navigation: arrow keys move focus to an adjacent widget.
* Context menus are keyboard-navigable with arrow keys, and the first letter of labels acts as a shortcut key to move focus on the item.
* Bookmarked URLs are automatically updated after permanent redirection. (The original URL is still saved in bookmarks.ini.)
* Line width expands dynamically (up to window size) to account for wide content like preformatted blocks and plain text lines.
* The file path can be entered manually in the upload dialog. Previously only drag-and-drop was supported.
* Right-clicking on the site banner shows a link context menu. (Linking to the capsule's root URL.)
* Show a confirmation popup when saving something to the downloads folder.
* Menubar: When opened via keyboard, reopen the most recently opened menu instead of "File".
* The Return key is now a (hardcoded) keyboard shortcut for focusing the navbar URL field.
* Page Information: Clarified meaning of "fingerprint". The type of hash (SHA-256) and what it was calculated from are specified (full certificate or just the public key).
* Updated UI symbols for "Go to Root", remote bookmarks, and the navbar bookmark indicator/button.
* Gopher: Proper parsing of Telnet line types `8` and `T`.
* Noto Emoji font updated to support Unicode 15.1.
* TUI: Often needed keyboard shortcuts are shown in place of menubar when the menubar is inactive, to make the UI more approachable.
* TUI: Improved UI layout, targeting a minimum resolution of 80x25.
* TUI: Improved text-mode rendering of various widgets.

Fixes:
* Titan URLs were incorrectly opening the upload dialog when navigating through history.
* Titan request in an open tab was resubmitted with empty content when launching the app.
* Default Titan upload identity was sometimes chosen incorrectly; should match the active Gemini identity.
* Upload dialog was missing a couple of UI strings for drag-and-drop errors.
* Gopher: Gemtext formatting (headings, quotes, etc.) found on Gopher menu pages is now escaped so it doesn't unintentionally affect the visual presentation.
* Gopher: Allow port number to be blank on `i` lines.
* Query shortcuts (bang snippets) that already contain a `?` character were prefixed by a redundant `?`.
* Link ordinals/letters (when navigating with Alt/Option or home row keys) now start at the actual top of the view.
* Incorrect event handling order with multiple windows when there is a focused widget.
* macOS: Navigating with trackpad on a non-focused window would cause the navigation to occur in another window, if the other window had focus.
* Missing focus indication in empty lists and the Snippets list.
* Holding down Alt/Option (link number modifier key) while opening a query link would prevent the prompt dialog from having input focus.
* Incorrect glyph spacing in a mixed-font preformatted block (fallback glyphs from different fonts).
* Lede paragraph highlighting was misbehaving with monospace body font; now gets disabled.
* Glyphs were sometimes partially cut off due to excessive background clearing on adjacent lines.
* TUI: Color escapes were not applied when rendering.
* TUI: Submenu chevron symbols were missing.
* TUI: Potential hang when wrapping text.

## 1.17.6
* Fixed memory leak: fetched pages were not always released from memory (reference miscount).
* Fixed minor memory leak in list widgets.
* Gopher: Autodetect Gemtext files based on file extension.
* Updated UI translations.

## 1.17.5
* Fixed a few small memory leaks.
* Fixed unnecessary copying of data while waiting for an audio buffer to become playable.
* Gopher: Detect audio media type from file extension with the `s` item type (it's not always WAV).
* Content that uses `charset=utf-8` is checked for validity. If the encoding is invalid, the content is instead decoded as CP437 (if it has ANSI escapes; possibly it's ASCII art) or just Latin-1.
* Remove ANSI escapes from window titles.
* Modified rule for when 'text/plain' is assumed to actually be 'text/gemini' based on the file extension.

## 1.17.4
* Removed automatic horizontal scrolling of wide preformatted blocks. Instead, hold down the Shift key to scroll horizontally with the mouse wheel.
* Fixed an event processing issue where some events were not handled as expected, for instance when opening a link into split view the opened link was not highlighted.
* Fixed links not reacting to mouse hover after jumping to a heading from the Outline.
* Fixed input prompt behaving strangely after changing font size. (Lines are now forced to rewrap after changing the font.)
* Fixed mouse cursor not changing its shape in all open windows.
* Updated UI translations.

## 1.17.3
* Fixed activating a pinned identity when opening a bookmark via the Bookmarks menu.
* Fixed initial scope of a created identity when using the default selection.
* Fixed issues with dropdown menus when the menu appears as a popup window.
* Fixed clearing the pinned identity of a bookmark.

## 1.17.2
* Tabs opened in background are immediately added to the URL history.
* Mouse wheel direction switches back to vertical when a wide block has been scrolled all the way.
* Fixed current text selection extending during scrolling even after mouse button has been released.
* Fixed drag-to-select with the mouse being too sensitive to mouse movement.
* Fixed the numbered links key (default: Alt/Option) while navigating to new pages. It is no longer necessary to release and press the key again on the new page.
* Fixed long bookmark titles making the Bookmarks menu too wide.
* ANSI Cursor Forward control sequence ("CSI n C") is converted to a series of spaces, but only in preformatted text.
* Fixed parsing of ANSI SGR sequences with many attributes concatenated (e.g., 0;1;40;30).
* Fixed inline image loading indicator overdrawing itself, becoming unreadable.
* Windows: Installer restarts the app after updating, and there is a checkbox for launching the app if it wasn't running. The uninstaller is now signed, too.
* Updated UI translations.

## 1.17.1
* Added "Vibrant Light" color theme.
* Improved readability of "Colorful Light" headings.
* Tuned autoscrolling when selecting text to avoid accidental scrolling.
* Preformatted blocks no longer switch to a smaller font to fit to the page.
* Mouse wheel scrolls a wide preformatted block when hovering over the block, instead of scrolling vertically. You can hold the Shift key to swap the scroll direction.
* Fixed horizontal scrolling issues with preformatted blocks: only scroll if needed, allow scrolling anywhere on the block and not just on non-empty text lines, and when scrolling disallow swipe navigation over the area.
* Fixed visual artifacts around and next to preformatted blocks (e.g., streaking).
* Fixed potential crash after (un)folding a preformatted block.
* Fixed links being non-clickable after searching text on a page has scrolled the view.
* Fixed scroll position being reset when reloading the page.
* Fixed initial size of the upload dialog when font size has been changed.
* Fixed "View as Plain Text" context menu item after reloading a page.
* Strip any null characters from the page source during whitespace normalization.

## 1.17
⚠️ Caps Lock is no longer treated as a modifier key in keybindings. Use `--capslock` to enable it.

New features:
* The Bookmarks menu lists all of your bookmarks and folders.
* Snippets: A collection of short text segments that can be pasted into any input field via the context menu. For example, useful for your gemlog header/footer and other often-repeated parts.
* Snippets can be managed in Preferences > Snippets and created by right-clicking on links or selected text on a page.
* Custom search queries: Snippets whose name starts with a bang (e.g., "!w") can be invoked in the URL field to make customized queries. The snippet content should be a Gemini search URL, for example: "gemini://gemi.dev/cgi-bin/wp.cgi/search".
* Quick lookup shows matching snippets as a new type of search result.
* Keyboard shortcut Shift+1/⇧1 for conveniently making a snippet query.
* Input prompts, upload dialogs, and bookmark editors can be resized by dragging the left or right edge.
* Text zooming in the upload text editor.
* Gemtext syntax highlighting in the upload dialog.
* Recently submitted input prompt contents are saved persistently and can be restored via the Ellipsis utility menu in the prompt dialog.
* You can force the input prompt to appear before a certain URL is requested so you can enter a query string. This is useful for avoiding an extra request when it is known that a URL will require input (e.g., search engine, game input).
* When importing links as bookmarks, you can optionally create subfolders from headings. You can also choose a destination folder for the imported bookmarks.
* Quickly add/move a bookmark into a folder with the navbar bookmark button context menu (right-click on 🏷️).
* User-selectable feed refresh interval. Previously the interval been hardcoded to four hours. (Based on a patch by Michael Nordmeyer.)
* Setting to never/always collapse preformatted blocks, disabling the ability to toggle the folding.
* "Fold All" and "Unfold All" in Bookmarks sidebar context menu.
* "Search" context menu item on selected text to make a search query with it.
* "Use as Search URL" in link context menu.
* "Mark All Links as Visited" in the Tools submenu.
* Option `--capslock`: enable Caps Lock as a modifier in keybindings.
* Option `--theme` (`-t`): change UI color theme of open Lagrange windows. Can be used in scripts to switch the theme automatically (for example, see the `darkman` utility; thanks to Jason McBrayer for suggesting this).
* Support for the Nex protocol (nex://nightfall.city/nex/info/specification.txt).
* Keyboard shortcut for deleting bookmarks (Backspace). Useful when the Bookmarks list has input focus.
* macOS: System UI accent color can be chosen as the accent color.

Changes and enhancements:
* Menus can have submenus. Several of the old menus were reorganized accordingly. For example, the page context menu has a Tools submenu for translation, Titan uploads, etc.
* Show unsupported media types as plain text if the content is valid UTF-8 encoded text.
* The page scrolls while selecting text near top/bottom.
* Display a logo graphic in empty windows/tabs as a placeholder.
* Visualize input focus in lists by drawing a focus rectangle around the current item.
* Menu separators are taller and more distinct for a clearer item separation.
* Adjusted colors of the Import Identity dialog.
* Auto-hide sidebars when resizing a window/split if the document area would become narrower than the sidebar.
* Tuned theme color palette and improved background colors of "Colorful Light".
* Newly created client certificates have a default expiration date in the year 9999, which means they won't expire. One can still also set a specific date as before.
* Periodically save UI state (including each tab's navigation history) to prevent data loss in case the app crashes. These runtime saves do not include any cached page content. The full cache is still saved as before when quitting the app.

Fixes:
* Potential crash at shutdown when a feed update is ongoing.
* Problems with window refresh when multiple windows are open. For example, the cursor not blinking in input fields.
* Incorrect name displayed in page banner when URL query string contains a tilde name.
* Fixed navbar spinner animation going too fast when both sides of a split view are being loaded.
* Glitches during swipe navigation (touch screens, macOS trackpad). Behavior is more robust at ends of history and when content is not immediately available in cache.
* Fixed opening of context menus via keyboard (incorrect click position).
* Fixed a text rendering issue where glyphs were incorrect when preceded by a Narrow No-Break Space.

## 1.16.7
* Workaround for window refresh potentially getting stuck while receiving a streaming response. (Limit update frequency.)
* Don't navigate back when stopping a streaming request.

## 1.16.6
* Fixed crash on gemini://sdf.org/ where the contents of a link line would fail to be recognized as valid characters.
* Fixed splitting a long wrapped line in input fields where part of the text would remain on the preceding line. (Mixup between byte and character index.)

## 1.16.5
* "New Tab" (Ctrl+T/⌘T) and the tab bar [+] button append the tab to the right edge. Previously it was inserted next to the active tab.
* Flatpak: Fixed crash when opening Preferences.

## 1.16.4
* Context/button menus use a popup window if they would otherwise have to scroll (e.g., "Dark theme:" in Preferences and "Folder:" in the bookmark editor).
* Improved tab closing order: close all sibling tabs opened from an origin tab before switching back to the origin tab.
* Center a short title under the icon in the page margin.
* Fixed navbar URL text selection when opening new tabs (keep all selected).
* Fixed too much empty space in the input prompt layout.
* Fixed input field not being updated after cutting text.
* Fixed stuck mouse button when opening a context menu while performing a drag.
* Fixed incorrect mouse button state and other potential incorrect behavior after resizing the window.
* macOS: Fixed drag operation getting stuck if a context menu is opened during the drag.
* macOS: Fixed a few cases of potential window freezing during swipe navigation.
* Windows: Updated SDL to 2.26.5.
* Linux: The x86_64 AppImage now uses SDL 2.26.5 built from source, fixing issues with window and popup behavior.
* TUI: Fixed build error.

## 1.16.3
* Remove whitespace from ends of a URL pasted into an input field.
* Fixed links whose label is a single Emoji sometimes not appearing.
* Fixed zooming not affecting unfocused windows right away.
* Fixed current zoom level not being applied to newly created windows.
* Fixed updating of selected text range in navbar URL when changing tabs.
* Fixed mouse wheel scrolling not working in unfocused windows.
* macOS: Fixed an issue where the input focus is given to the wrong window when the application comes to the foreground.

## 1.16.2
* Set input focus to navbar URL field when opening an empty window.
* The navbar URL field only omits the "gemini:" scheme when the text actually doesn't fit horizontally, and only when the field is inactive.
* Fixed problems with handling URLs in input fields. For example, copying the URL to the clipboard sometimes had unexpected or incorrect results.
* Updated UI translations.

## 1.16.1
* Fixed handling of the AltGr key during text input (again).
* Updated UI translations.

## 1.16
New features:
* Input prompt font size can be changed with the Zoom In/Out/Reset keys.
* Preferences: Option for silently following scheme-changing redirects (Network tab; default: no).

Changes and enhancements:
* Tab creation and closing follows common browser conventions: new tabs are opened next to the most recently opened tab, so they retain the correct left-to-right order.
* Preferences: Moved cache/memory size settings to Content tab.
* Page title in margin omits prefix Emoji if it matches the bookmark icon.
* Adjusted word-wrapping to break at a period inside a word (e.g., domain names).
* If the page is missing a level 1 heading, use the first content line as the title.

Fixes:
* Fixed tab order getting reversed when restoring tabs at launch.
* Fixed order of opened tabs when using "Open in New Tabs" on a bookmark folder.
* Fixed input focus going to the wrong split when pressing Ctrl+L/⌘L with an Upload dialog open.
* Fixed text fields becoming nonresponsive when multiple fields are active.
* Fixed input query dialogs not being hidden when the tab changes.
* Fixed incorrect parsing of "hostname:port" in URL field (without `//` or `gemini://`).
* Fixed potential crash when switching between cached pages while navigating in history.
* Fixed potential crash when closing split view during a scrolling animation.

## 1.15.9
* Added new UI translation: Basque (euskara).
* Improved opening and closing of tabs. New tabs now open to the right of the current tab.
* Allow scaling up small images up to 2x size.
* Fixed possible crash when closing tabs.
* Fixed crashes on Wayland due to use of X11-specific code.
* Updated UI translations.

## 1.15.8
* Fixed activation of a pinned identity in inline media requests.
* Fixed potential crash when changing split view mode during a UI animation.
* Updated UI translations.

## 1.15.7
* Fixed window contents getting frozen after Reset Zoom when zoom level is already at 100%.
* Fixed key modifiers not being recognized before a text field has been activated. (Affects some versions of SDL.)
* Updated UI translations.

## 1.15.6
* The Outline tab in the sidebar now uses regular UI colors, like other sidebar tabs.
* Fixed handling of the AltGr key during text input.
* Fixed incorrect background colors for Preferences tab buttons with certain themes (e.g., Colorful Light).
* Updated UI translations.

## 1.15.5
* Added several new translated languages: Azerbaijani, Catalan, Czech, Danish, Dutch, Esperanto, Finnish, Greek, Hebrew, Hungarian, Indonesian, Irish, Korean, Persian, Polish, Slovak, Swedish, Turkish, and Ukrainian. (LibreTranslate server was upgraded to v1.3.10.)
* Added "Auto-detect" as the default source language for translation.
* Added option to skip preformatted blocks when translating a page.
* Fixed translation of link lines. Only the link label is now translated.
* Fixed lines on translated pages sometimes shifting position and getting the wrong line types.
* Fixed handling of redirects when fetching subscribed feed pages.
* Fixed saving the "Split view pinning" setting so it doesn't reset when relaunching the app.
* Updated UI translations.

## 1.15.4
* Fixed crash when trying to open a tab, New Identity dialog, or the Identity menu when the Preferences window is focused.
* Fixed potential crash if switching focus to a widget being dismissed (e.g., popup going away).
* Fixed text input becoming unresponsive when focus switches from a popup being dismissed to a new popup.
* Fixed closing the Preferences window with Ctrl+W or ⌘W.
* Fixed unnecessary page layout update when closing Preferences.
* Updated UI translations.

## 1.15.3
* Fixed handling of redirects in the inline media player and file downloader.
* Updated UI translations.

## 1.15.2
* Fixed moving input focus to the next window when closing a window.
* Centered footer info text for better balance.
* Fixed TUI build.
* Updated UI translations.

## 1.15.1
* Fixed opening multiple Preferences windows at the same time.
* Fixed the Preferences window missing a window icon.
* Footer information moved out of the margin area and under the page content.
* Updated UI translations.

## 1.15
New features:
* Preferences dialog opens as a separate window.
* Option `--prefs-sheet`: open Preferences as a sheet like in previous releases.
* Reordering tabs: tab buttons can be dragged with the mouse, and tabs can be moved left/right using tab context menu items or keyboard shortcuts.
* Move a tab to the other side of a split view (tab context menu).
* Move a tab to a new window (tab context menu).
* Added a "Window" menu to the menu bar that has actions for manipulating and switching the active window, and duplicating and switching tabs. (On macOS, this menu has already been available.)
* macOS: 🌐E opens the native Character Viewer.
* Gopher: Option to disable Gemini styling on Gopher menu pages. When disabled, whitespace is not normalized and all non-link lines are presented as regular paragraph text.
* Japanese UI translation (13% complete).

Changes and enhancements:
* Redesigned Preferences dialog with vertical tabs and a new organization of the settings. "Fonts" and "Colors" are removed, and there is a new "Content" tab.
* Mouse cursor turns into the I-beam only over selectable text.
* Indicate that tab autoreloading is enabled by changing the appearance of the navbar reload button.
* macOS: "Window" menu has new actions for duplicating and switching tabs.
* GTK: Request dark window theme if the app UI color theme is dark.
* Prevent high-resolution mice from flooding event processing with too many motion events and delaying UI refresh.
* Updated UI translations.

Fixes:
* Changing the UI scaling factor will now affect all existing and newly created windows.
* Possible crash when duplicating a tab.
* Issues with event processing when multiple windows are open.
* Workaround for a hang when running many parallel requests with MIME filter hooks.

## 1.14.2
* Fixed a potential crash when using musl libc.
* Fixed a potential crash when closing tabs in split view mode.
* Fixed inconsistent spacing after level 1 headings.
* Fixed endless reload animation events if a split view is closed while loading a page.
* Fixed page load progress indicator that was being obscured by active split marker in split view.
* Fixed potential crash when trying to reuse a TLS session.
* FreeBSD: By default use the system-provided SSL library (that can be LibreSSL).
* macOS: Prebuilt binaries use LibreSSL instead of OpenSSL.
* Updated UI translations.

## 1.14.1
* Fixed possible crash when closing a tab with the outline sidebar visible.
* Fixed hang when setting a folder's parent to itself in the Edit Folder dialog.
* macOS: "Settings" menu item was disabled on Ventura.
* Updated UI translations.

## 1.14
New features:
* A bookmark folder can be opened in new tabs, in the same window or a new one, one tab per bookmark.
* Pinned bookmark identities. A simpler way to use identities. When the "Pinned identity" property is set on a bookmark, opening the bookmark causes the selected identity to be "pinned" to the tab: while you stay on the same site, the identity remains in use when opening links. However, when opening a link to another site, a new tab gets opened. (The old way of per-URL identities is still available, too.)
* New identities can be created for use in the current directory (as opposed to domain or page).
* Option `--dump` (`-d`) to print contents of URLs/paths to stdout. Metadata is printed to stderr.
* Option `--dump-identity` (`-I`) selects the identity to use with `--dump`.
* Option `--replace-tab URL` opens a URL, replacing contents of the active tab.
* Option `--user DIR` (`-U`) to set the directory where user data is stored.

Changes and enhancements:
* When creating new identities, make it clearer what the scope of usage will be. The UI actions explicitly say "New Identity for Domain" when the default usage will be the entire domain.
* URLs opened via system-level handlers always open a new tab, like URLs opened via the command line.
* MIME types of many new file extensions are recognized (courtesy of John Cowan).
* The regular expression library PCRE2 is preferred over PCRE, if available. The older library is in maintenance mode.
* Updated UI translations.

Fixes:
* Accidental backwards navigation when quickly refreshing the page twice.
* Page scroll position is kept when loading finishes, if the user already scrolled during loading.
* Schemeless relative URLs no longer assume "gemini" as the scheme, instead using the current page's scheme as default.
* Opening a feed entry in a background tab will mark is as read, like opening in the foreground does.
* ANSI escapes 39 and 49 (reset FG/BG color to default) were not working.

## 1.13.8
* Fixed issues with text selection and range visualization.
* macOS: Fixed crash when opening URLs via system handler when no windows open.
* TUI: Improved POSIX compliance in build-tui script.

## 1.13.7
* Fixed reporting of errors related to a proxy server certificate.
* An untrusted proxy server certificate can be trusted via Page Information.
* Updated UI translations.

## 1.13.6
* Added option to split tabs evenly, excluding sidebar widths (default: no).
* Fixed crash when switching view to plain text.
* Fixed manually entered image URLs inadvertently opening inline.
* Fixed mouse event handling in split view mode when a dialog is open on one side. The other side would not receive wheel events unless input focus was first switched over.
* Fixed issues with popup menu positioning.
* Fixed drawing of the widget scroll indicator when a widget doesn't fit vertically in the window.
* Possible workaround for an issue with mouse hover autoscrolling on an external displays.
* Don't open an endless number of bookmark creation/edit dialogs when holding down the keyboard shortcut (Ctrl+D/⌘D).
* Percent-encode backslashes in externally opened URLs, for improved compatibility.
* Custom link icons are allowed with unsupported/unrecognized protocols (i.e., Emoji at the start of link label).
* Use file name as the tab/window title if the content has no headings.
* Avoid redundancy in tab/window titles ("Cosmos — Cosmos" → "Cosmos").
* macOS: Fixed a sidebar animation glitch when in split view mode.
* macOS: Adjusted idle UI refresh rate when using the Metal backend, to avoid stutters.
* Updated UI translations.

## 1.13.5
* Parent navigation assumes directory URL is equivalent to index page URL (e.g., "/path/" == "/path/index.gmi"): this now only applies to Gemini URLs, and checks for "index.gemini", too, as per Gemini Best Practices.
* Fixed crash when determining the name of a ZIP file from a URL.
* Fixed misparsing of URL to form the name of a downloaded file (`%23` decoded too early).
* macOS: Fixed window state being forgotten when all windows are closed. Normally state is saved when quitting, but on macOS the app will keep running without any windows.
* TUI: Added "Simple characters" setting (in Preferences > Fonts) that replaces selected Unicode symbols with ASCII approximations.
* TUI: Level 1 headings are two lines tall and underlined.
* TUI: Don't load any fontpacks.
* TUI: `build-tui.sh` now has interactive build config.
* Updated UI translations.

## 1.13.4
* TUI: Improved detection of supported color modes. The preferred mode is a modifiable palette with 256+ colors. As a fallback, use a fixed VGA palette, or basic monochrome if the terminal doesn't support colors.
* TUI: Tuned build flags in `build-tui.sh` as a Linux workaround (set `-O1` on SEALCurses).
* TUI: Ignore the LAGRANGE_OVERRIDE_DPI environment variable.
* Spartan: Fixed opening URLs in other apps via operating system handlers.
* Updated language strings.

## 1.13.3
* Changed URL field bookmark indicator for better consistency.
* Show a proper error page if server closes the connection before a header is fully received.
* Spartan: Prefilled prompt input from URL query string is selected by default.
* Spartan: Fixed composing request content out of the query string.
* Spartan: Fixed handling of empty path in a request.
* Spartan: Allow opening URLs from command line.
* Spartan: .desktop file includes Spartan scheme handling.
* macOS: Register app as Spartan URL scheme handler.
* macOS: Fixed relaunching the app after installing an update via Sparkle.
* Windows: Register Gopher and Spartan URL handlers.
* TUI: Fixed `build-tui.sh` so it doesn't expect the_Foundation to be preinstalled.

## 1.13.2
* Fixed failure to restore the selected fonts at launch.
* Fixed window state being reset when quitting the app by closing the last window. (No such problem was occurring when quitting via menu or Ctrl+Q.)

## 1.13.1
* Fixed crash when opening Preferences. The text renderer had problems with font lookup.

## 1.13
New features:
* Curses-based `clagrange` for running the app in the terminal. This is a complete TUI port of the original GUI version including, e.g., UI animations, smooth scrolling, and split view mode. `clagrange` has separate preferences, UI state, and key bindings but the rest of the runtime files are shared with the GUI version.
* Build option `ENABLE_TUI`: build a text mode version of the app so it can be run in the terminal. Enabling this produces an executable called `clagrange` that is not linked with SDL.
* URL field indicator that shows if there's a bookmark for the current page. Clicking on the indicator opens the Add/Edit Bookmark dialog.
* Checking server certificates using a bundled root CA file.
* Build option `CACERT_PEM_PATH`: path of a cacert.pem file that contains trusted root CA certificates. This file is included in resources.lgr.
* Support for the Spartan protocol. Prompt lines will open an input dialog for submitting text. This can be expanded to the full upload dialog using which a file can be uploaded, too.
* Reopening the last closed tab. The default binding is Shift+Ctrl+T (⇧⌘T).
* Page context menu item "View as Plain Text": show the page source as plain text.
* Option to view Markdown as source or as a Gemtext conversion (default: as source).

Changes and enhancements:
* Updated Noto Emoji font with support for Unicode 14. There should be no more missing Emoji glyphs.
* Improved UI keyboard navigation. The sidebar and all widgets in dialogs are accessible via Tab cycling, and new shortcuts have been added for opening menus. Menu items and lists are cursor-navigable. Opening the sidebar automatically gives it keyboard focus.
* When bookmarking a page, show the Edit Bookmark dialog if there's already a bookmark for the URL. The Edit Bookmark dialog has a new Duplicate button for actually making a duplicate bookmark.
* Markdown documents support horizontal rules.
* TUI: Zoom controls resize the open sidebar (left sidebar if both visible).
* macOS: Keep app running even after all windows are closed. Clicking on the dock icon opens a new window.

Fixes:
* Sidebar page outline not updated when the current tab changes.
* The Escape key closes the bookmark editor dialog as intended.
* Preferences: "Justify" option must be hidden if HarfBuzz is not used.
* macOS: Window refresh tweaks to avoid stutters (Metal renderer).

## 1.12.2
* Fixed positioning of the language translation dialog's progress animation.
* Fixed hovering on links via the keyboard (default binding: H).
* Tab buttons use theme background color with light Oceanic to avoid a color clash.
* Feed refresh indicator uses the accent color.
* Updated UI translations.

## 1.12.1
* Windows: Fixed importing identities (path separator confusion).
* Updated Help: export/import, user data archives, paragraph justification.
* Updated UI translations.

## 1.12
New features:
* Export and import user data as a ZIP archive, including identities, bookmarks, site-specific settings, trusted certificate fingerprints, and browsing history.
* UI layout options: the navigation/tab bars can be moved to the bottom of the window, and one can have a traditional menu bar instead of the hamburger menu. On macOS, the normal menu bar is used as before.
* Added style option to justify paragraphs that are at least three lines long.
* Added new content theme "Oceanic" with support for both dark and light modes.
* Added new UI accent colors: Red, Green, Blue, Gray.
* Feeds: Added "Mark Below as Read" context menu item.
* macOS: A set of system fonts is available for use in content/UI. In practice, these are .ttc files loaded from /System/Library/Fonts/, rendered using Lagrange's own text renderer.
* Site-specific setting for TLS session resumption (enabled by default).

Changes and enhancements:
* Roboto is the new default content/UI font, except on Windows where Segoe UI is the default font.
* Toggles use symbols instead of YES/NO.
* UI uses only one accent color at a time.
* Theme palette tuning: adjusted generated palettes of Colorful Dark/Light, improved the Sepia theme, and added a dark mode Sepia variant.
* Certain pages like Help open in a new tab. If the page is already open in a tab, that tab is activated instead of opening a new one.
* Improved word wrapping with more breaking punctuation.
* Text renderer uses additional subpixel offsets with lower-density displays.
* Text rendering optimizations: avoid repeated shaping of the same text.
* UI rendering optimizations.

Fixes:
* Fixed a possible crash when clicking on the first link of a page with the monospace body text option enabled.
* Fixed occasional small gaps between glyph backgrounds.
* Fixed problems with marking feed entries as read/unread.
* The bookmark dialog doesn't show irrelevant fields when editing a bookmark folder.
* Spurious spaces are removed from ends of bookmark titles.
* Pasting text into an input field should not decode reserved URL characters.
* Percent-encoded spaces (%20) in a file name were not decoded when saving a file.
* Windows: Fixed issues with restoring window placement in maximized mode.

## 1.11.2
* Added a keybinding for focusing the URL field.
* Sidebar items (bookmarks, feed entries, history) can be middle-clicked to open in a new tab. Holding Shift will open the tab in the foreground.
* Flags can be used as link icons. Note that additional fonts and HarfBuzz are required for all the flag symbols to be visible.
* Updated UI translations.

## 1.11.1
* Fixed opening bookmarks in a new window.
* Fixed use of a cached TLS session after deactivating a client certificate.

## 1.11
⚠️ Downgrading back to v1.10 causes all site-specific themes to be forgotten. Back up your sitespec.ini beforehand.

New features:
* Multiple windows. Windows can be opened via the menu, Ctrl/⌘+N, or link context menus.
* Restoring tabs at launch is now optional. Added a toggle in Preferences > General.
* Site-specific settings (Shift+Ctrl/⌘+Comma), with options for theme customization and showing ANSI escape warnings. The custom theme is based on a "seed string" chosen by the user.
* Fontpack search. Fonts in the skyjake.fi font library have been indexed based on all the glyphs they provide, so one can look up which fontpacks provide any missing glyphs.
* "Manage Fonts" button on the Preferences > Fonts tab. It opens "about:fonts".
* "Tab width" setting (default: 8). This controls how TAB characters are displayed on pages.
* Setting for maximum valid URI length on 'text/gemini' link lines.
* Option to show images decoded from data URLs immediately after loading a page. This is limited to JPEG, PNG, WebP, and GIF (no animations).
* "Paste and Go" in the input field context menu.
* TLS session caching: reduces the need for redundant handshaking by keeping old TLS sessions cached for 10 minutes.
* UI language for Italian.

Changes and enhancements:
* The input prompt dialog saves entered text persistently, just like the Upload dialog. This prevents losing text if the dialog is closed accidentally.
* Input field backup is done per window, e.g., "uploadbackup.2.txt".
* Sidebar context menus have more consistent "open" menu items, now including opening the item in a new window.
* The missing glyphs warning dialog now shows a list of the missing code points.
* Downloading the Classic Set fontpack is no longer suggested since fontpacks can be searched as needed.
* Abbreviate font pack descriptions on "about:fonts". The full description is shown when viewing a single fontpack.
* The active tab button uses the theme background color if the page color theme has a bright colorful background to avoid clashing with the UI accent color.
* Adjusted colors of the Gray and Black page themes.
* Added additional (small) variations to theme hues.
* Data URLs have their own link icon.
* Adjusted appearance of context menus.
* Updated UI translations.

Fixes:
* Incorrect behavior and UI glitches related to data URLs. The UI will now omit the encoded part of data URLs.
* Occasional mismatch between page and banner backgrounds. It was due to loss of precision when converting colors to 8-bit RGB.
* Issues with changing UI metrics when a window moves between displays. Not all UI elements were rescaled properly.
* Glitches with opening and closing context menus.
* TAB characters are no longer forcibly normalized to spaces.
* Pasting LF characters in the URL field should not be possible.
* Avoid reinitializing fonts more than once during startup.

=> about:version-1.10  Older versions
